package com.auxgroup.smarthome.service;


import com.auxgroup.smarthome.repo.DeviceInfoEntityRepo;
import com.auxgroup.smarthome.repo.UserDeviceEntityRepo;
import com.auxgroup.smarthome.vo.DeviceFaultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by fju on 2017/7/25.
 */
@Service
public class DeviceInfoDBService {

    @Autowired
    private DeviceInfoEntityRepo deviceInfoEntityRepo;
    @Autowired
    private UserDeviceEntityRepo userDeviceEntityRepo;


    /**
     * modify by lixiaoxiao 20170810 新增根据mac获取绑定主人的用户名和手机号
     */
    public DeviceFaultVo findByMac(String mac){
        return userDeviceEntityRepo.findByMac(mac);
    }

}
